package news.dao;

import java.sql.Connection;
import java.sql.DriverManager;




public class DaoFactory {
	final static String DRIVER="oracle.jdbc.driver.OracleDriver";							
	final static String URL="jdbc:oracle:thin:@localhost:1521:orcl";
	final static String DBNAME="kong";
	final static String DBPWD="kong";
	
	public static Connection getConn(){
		Connection conn=null;
		try {
			Class.forName(DRIVER);
			conn=DriverManager.getConnection(URL, DBNAME, DBPWD);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return conn;
	}
}
